<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="p"%>
<%
	String path = request.getContextPath();
	String root = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	request.setAttribute("root", root);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />

	<title>MochaUI - A Web Applications User Interface Library</title>
	<meta name="description" content="A web applications user interface library built on the Mootools javascript framework" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />

	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Content.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Core.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Layout.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Dock.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Tabs.css" />
	<link rel="stylesheet" type="text/css" href="${root}/static/themes/default/css/Window.css" />

    <script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-core-yc.js"></script>
    <script type="text/javascript" src="${root}/static/scripts/mootools-1.2.4-more-yc.js"></script>
    <script type="text/javascript" src="${root}/static/scripts/mocha.js"></script>    
	<script type="text/javascript" src="${root}/static/scripts/demo-virtual-desktop-init.js"></script>
	<script type="text/javascript" src="${root}/static/plugins/tree/scripts/tree.js"></script>
	<script type="text/javascript" src="${root}/static/wdate/WdatePicker.js"></script>

<style>
<!--
.t_lable{text-align: right;padding-right: 5px}
table{min-width: 1030px}
table tr{height: 30px}
table tr td{padding-left: 5px}
.required{color: red;font-weight: bold;margin-left: 3px;}
-->
</style>
	</head><body>
<s:form id="agreement_form" action="agreement/update.action" method="post" theme="simple">
<table width="100%" border="1">
<tr>
    <td class="t_lable">协议名称</td>
    <td colspan="5"><s:textfield cssClass="input" cssStyle="width: 96%" name="agreement.name"/><span class="required">*</span></td>
    <td class="t_lable">单位名称</td>
    <td><s:select list="#request.companys" listKey="id" headerKey="-1" headerValue="-- 请选择 --" listValue="name" cssClass="select" name="agreement.companyId" /></td>
  </tr>
  <tr>
    <td class="t_lable">协议开始时间</td>
    <td><s:textfield cssClass="input" size="27" readonly="readonly" onclick="WdatePicker();" name="agreement.startDate" /></td>
    <td class="t_lable">协议终止时间</td>
    <td><s:textfield cssClass="input" size="27" readonly="readonly" onclick="WdatePicker();" name="agreement.endDate" /></td>
    <td class="t_lable">开户行</td>
    <td><s:select list="#request.banks" listKey="id" listValue="key" headerKey="-1" headerValue="-- 请选择 --" cssClass="select" name="agreement.bankName" /></td>
     <td class="t_lable">帐号</td>
    <td><s:textfield cssClass="input" size="27" name="agreement.bankAccount"/></td>
  </tr>
  <tr>
    <td class="t_lable">是否已经审批</td>
    <td><s:textfield cssClass="input" size="27" name="agreement.assess"/></td>
    <td class="t_lable">协议类别</td>
    <td><s:select list="#request.agreement_category" headerKey="-1" headerValue="-- 请选择 --" listKey="id" listValue="key" cssClass="select" name="agreement.category" /></td>
    <td class="t_lable">协议状态</td>
    <td><s:select list="#request.agreement_state" headerKey="-1" headerValue="-- 请选择 --" listKey="id" listValue="key" cssClass="select" name="agreement.state" /></td>
    <td class="t_lable">工资模板</td>
    <td><s:select list="#request.tpl" listKey="id" listValue="name" cssClass="select" name="agreement.salaryTemplate" /></td>
  </tr>
  <tr>
    <td class="t_lable">工会费方式</td>
    <td><s:select list="#request.unionPay" name="agreement.unionFeeWay"  headerKey="-1" headerValue="-- 请选择 --" listKey="id" listValue="key" cssClass="select"/></td>
    <td class="t_lable">工会费</td>
    <td><s:textfield cssClass="input" size="27" name="agreement.unionFee"/></td>
    <td class="t_lable">服务费方式</td>
    <td><s:select list="#request.serverPay" name="agreement.serviceFeeWay"  headerKey="-1" headerValue="-- 请选择 --" listKey="id" listValue="key" cssClass="select"/></td>
    <td class="t_lable">服务费</td>
    <td><s:textfield cssClass="input" size="27" name="agreement.serviceFee"/></td>
  </tr>
  <tr>
    <td class="t_lable">其他费</td>
    <td><s:textfield cssClass="input" size="27" name="agreement.otherFee"/></td>
    <td colspan="6" class="t_lable"><s:hidden name="agreement.id" /></td>
  </tr>
  <tr>
    <td class="t_lable" valign="top">合同备注</td>
    <td colspan="7"><textarea style="width: 99%;height: 50px" name="agreement.summary" ></textarea> </td>
  </tr>
  <tr>
    <td colspan="8" align="right" style="padding-right: 10px;height: 50px"><input type="reset" class="button" value="  清 空  "/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:submit cssClass="button" value="  保 存  "/></td>
  </tr>
</table>
</s:form></body></html>
